.class Lcom/xingbook/ui/overclass/l;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/media/MediaPlayer$OnPreparedListener;


# instance fields
.field final synthetic a:Lcom/xingbook/ui/overclass/VideoView;


# direct methods
.method constructor <init>(Lcom/xingbook/ui/overclass/VideoView;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPrepared(Landroid/media/MediaPlayer;)V
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0, v4}, Lcom/xingbook/ui/overclass/VideoView;->a(Lcom/xingbook/ui/overclass/VideoView;Z)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->d(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/s;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->d(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/s;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v1}, Lcom/xingbook/ui/overclass/VideoView;->e(Lcom/xingbook/ui/overclass/VideoView;)Landroid/media/MediaPlayer;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    iget-boolean v2, v2, Lcom/xingbook/ui/overclass/VideoView;->a:Z

    invoke-interface {v0, v1, v2}, Lcom/xingbook/ui/overclass/s;->a(Landroid/media/MediaPlayer;Z)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->f(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/c;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->f(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/c;

    move-result-object v0

    invoke-interface {v0, v4}, Lcom/xingbook/ui/overclass/c;->setEnabled(Z)V

    :cond_1
    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->getVideoWidth()I

    move-result v1

    invoke-static {v0, v1}, Lcom/xingbook/ui/overclass/VideoView;->a(Lcom/xingbook/ui/overclass/VideoView;I)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->getVideoHeight()I

    move-result v1

    invoke-static {v0, v1}, Lcom/xingbook/ui/overclass/VideoView;->b(Lcom/xingbook/ui/overclass/VideoView;I)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->b(Lcom/xingbook/ui/overclass/VideoView;)I

    move-result v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->c(Lcom/xingbook/ui/overclass/VideoView;)I

    move-result v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-virtual {v0}, Lcom/xingbook/ui/overclass/VideoView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v1}, Lcom/xingbook/ui/overclass/VideoView;->b(Lcom/xingbook/ui/overclass/VideoView;)I

    move-result v1

    iget-object v2, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v2}, Lcom/xingbook/ui/overclass/VideoView;->c(Lcom/xingbook/ui/overclass/VideoView;)I

    move-result v2

    invoke-interface {v0, v1, v2}, Landroid/view/SurfaceHolder;->setFixedSize(II)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->g(Lcom/xingbook/ui/overclass/VideoView;)I

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->e(Lcom/xingbook/ui/overclass/VideoView;)Landroid/media/MediaPlayer;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v1}, Lcom/xingbook/ui/overclass/VideoView;->g(Lcom/xingbook/ui/overclass/VideoView;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->seekTo(I)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0, v3}, Lcom/xingbook/ui/overclass/VideoView;->c(Lcom/xingbook/ui/overclass/VideoView;I)V

    :cond_2
    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    iget-boolean v0, v0, Lcom/xingbook/ui/overclass/VideoView;->a:Z

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->e(Lcom/xingbook/ui/overclass/VideoView;)Landroid/media/MediaPlayer;

    move-result-object v0

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->start()V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    iput-boolean v3, v0, Lcom/xingbook/ui/overclass/VideoView;->a:Z

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->f(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/c;

    move-result-object v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->f(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/c;

    move-result-object v0

    invoke-interface {v0}, Lcom/xingbook/ui/overclass/c;->b()V

    :cond_3
    :goto_0
    return-void

    :cond_4
    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-virtual {v0}, Lcom/xingbook/ui/overclass/VideoView;->isPlaying()Z

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->g(Lcom/xingbook/ui/overclass/VideoView;)I

    move-result v0

    if-nez v0, :cond_5

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-virtual {v0}, Lcom/xingbook/ui/overclass/VideoView;->getCurrentPosition()I

    move-result v0

    if-lez v0, :cond_3

    :cond_5
    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->f(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/c;

    move-result-object v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->f(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/c;

    move-result-object v0

    invoke-interface {v0, v3}, Lcom/xingbook/ui/overclass/c;->a(I)V

    goto :goto_0

    :cond_6
    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->g(Lcom/xingbook/ui/overclass/VideoView;)I

    move-result v0

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->e(Lcom/xingbook/ui/overclass/VideoView;)Landroid/media/MediaPlayer;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v1}, Lcom/xingbook/ui/overclass/VideoView;->g(Lcom/xingbook/ui/overclass/VideoView;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->seekTo(I)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0, v3}, Lcom/xingbook/ui/overclass/VideoView;->c(Lcom/xingbook/ui/overclass/VideoView;I)V

    :cond_7
    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    iget-boolean v0, v0, Lcom/xingbook/ui/overclass/VideoView;->a:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    invoke-static {v0}, Lcom/xingbook/ui/overclass/VideoView;->e(Lcom/xingbook/ui/overclass/VideoView;)Landroid/media/MediaPlayer;

    move-result-object v0

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->start()V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/l;->a:Lcom/xingbook/ui/overclass/VideoView;

    iput-boolean v3, v0, Lcom/xingbook/ui/overclass/VideoView;->a:Z

    goto :goto_0
.end method
